﻿@{
    ViewBag.Title = "title";
    Layout = "_Layout";
}
<h2>单文件上传</h2>
<form action="/upload/single" method="post" enctype="multipart/form-data">
    <!-- enctype:加密类型 multipart/form-data: 不对传输内容进行编码-->
    <input type="file" name="photo" />
    <input type="submit" value="上传" class="btn btn-primary" />
</form>